package com.huatai.manage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.huatai.manage.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 编码管理（字典）;
 * </p>
 *
 * @author luoxc
 * @since 2023-07-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_code_manage")
@ApiModel(value="TbCodeManage对象", description="编码管理（字典）;")
public class TbCodeManageEntity extends BaseEntity {

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

	@ApiModelProperty(value = "编码id")
	private String codeId;

    @ApiModelProperty(value = "主编码")
	@NotBlank(message = "主编码不能为空")
    private String codeMain;

    @ApiModelProperty(value = "编码")
	@NotBlank(message = "编码不能为空")
    private String code;

    @ApiModelProperty(value = "编码名称")
	@NotBlank(message = "编码名称不能为空")
    private String codeName;

    @ApiModelProperty(value = "编码类型")
	@NotBlank(message = "编码类型不能为空")
    private String codeType;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "最大值")
    private String maxValue;

    @ApiModelProperty(value = "最小值")
    private String minValue;

    @ApiModelProperty(value = "状态")
    private String state;

    @ApiModelProperty(value = "备注")
    private String remark;


}
